/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.lswms.modules.job.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 每天统计库存任务
 */
@Component("StatisticsTask")
public class StatisticsTask implements ITask{
	private Logger logger = LoggerFactory.getLogger(getClass());

//	@Autowired
//	private InventoryService inventoryService;
//	
//	@Autowired
//	private StatisticsService statisticsService;

	
	@Override
	public void run(String params){
		logger.debug("StatisticsTask定时任务正在执行，参数为：{}", params);
//		List<InventoryEntity> list = inventoryService.queryInvCount();
//		for(InventoryEntity dto : list) {
//			StatisticsEntity statis = new StatisticsEntity();
//			statis.setMaterialCode(dto.getMaterialCode());
//			statis.setMaterialName(dto.getMaterialName());
//			statis.setSpecification(dto.getSpecification());
//			statis.setUnitCode(dto.getUnitCode());
//			statis.setQty(dto.getQty());
//			statis.setDistributionQty(dto.getDistributionQty());
//			statis.setCreateDate(ZqDateUtil.getNow());
//			statisticsService.insert(statis);
//		}
	}
}